package com.cloud.bean;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class User implements Serializable {
    private static final long serialVersionUID = -17671979085160933L;

    private Integer id;

    private String username;

    private String password;
    /**
     * 代理等级
     */
    private Integer agentlevel;
    /**
     * vip等级
     */
    private Integer viplevel;
    /**
     * 创建时间
     */
    private String createtime;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 上级id
     */
    private Integer pid;
    /**
     * 登录失败次数
     */
    private Integer loginfailure;
    /**
     * 登录ip
     */
    private String loginip;
    /**
     * 0:正常 1:停用
     */
    private Integer status;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String updatetime;
    /**
     * seesion标识
     */
    private String token;
    /**
     * 邀请码
     */
    private String invitationcode;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 余额
     */
    private Double balance;
    
    private String imageCode;
}
